/**
 * Created by Tsuna Chenug on 2016/12/7.
 */
import React, {Component} from 'react';
import {
    StyleSheet,
    Text,
    TouchableOpacity
} from 'react-native';
export default class aButton extends Component {
    constructor(props) {
        super(props);
    }

    render() {
        return (
            <TouchableOpacity style={aButtonStyles.button}
                              onPress={this.props.aButtonFunction}>
                <Text style={aButtonStyles.buttonFont}>{this.props.aButtonText}</Text>
            </TouchableOpacity>
        );
    }
}

const aButtonStyles = StyleSheet.create({
    button: {
        alignItems: 'center',
        backgroundColor: '#2E7CDE',
        width: 150,
        height: 40,
        marginTop: 40,
        justifyContent: 'center',
        borderRadius: 5
    },
    buttonFont: {
        fontSize: 20,
        color: "#ffffff"
    }
});
